package com.wtf.dsp.admin.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * ClassName: PageDTO
 * Description:
 * date: 2023/7/1 21:18
 *
 * @author linhuanyou
 * @version 1.0
 */
@Data
@ToString
@ApiModel("分页基础类")
public class PageDTO {

    @ApiModelProperty(value = "页码")
    @NotNull(message = "请输入页码")
    protected Integer page = 1 ;

    @ApiModelProperty(value = "条数")
    @NotNull(message = "请输入条数")
    protected Integer limit = 20;
}
    